﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhy.DAL.Models
{
    /// <summary>
    /// 视图
    /// </summary>
    [PrimaryKey("ClassId")]  // 设置主键特性
    public class ViewClassInfo
    {
        /// <summary>
        /// 班级ID
        /// </summary>
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)] // 设置住建自增特性
        public int ClassId { get; set; }
        /// <summary>
        /// 班级名称
        /// </summary>
        public string ClassName { get; set; }
        /// <summary>
        /// 年级名称
        /// </summary>
        public string GradeName { get; set; }
    }
}
